<template>
	<view>
		<view>
			<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text"
				activeColor="#ff6d9f"></uni-segmented-control>
			<view class="content">
				<view v-show="current === 0">
					<view class="none">暂无数据</view>
				</view>
				<view v-show="current === 1">
					<view class="none">暂无数据</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: ['报纸', '视频'],
				current: 0
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title: options.name
			})
		},
		methods: {
			onClickItem(e) {
				if (this.current != e.currentIndex) {
					this.current = e.currentIndex;
				}
			}
		}
	}
</script>

<style scoped lang="scss">

	.content {
		padding: 30rpx 20rpx 0;
		
		.none {
			text-align: center;
			margin-top: 300rpx;
			color: #666;
			font-size: 32rpx;
		}
	}

</style>
